import { Category } from './category';
import { Unit } from './unit';
import { Modifier } from './modifier';

export class Inventory {
    constructor() { }
    id:string;
    categories: Category[];
    //商品名称
    name: string;
    //图片
    pic: string;
    //商品分类
    categoryIds;
    price: number;
    //商品代码
    code: string;
    //规格
    model: string;
    //材质
    material: string;
    //单位
    unit: Unit;
    unitId: string;
    //颜色
    color: string;
    //产地
    madein: string;
    //描述
    description: string;
    //检索码
    searchCode: string;
    //上架下架
    onsale: boolean;
    //会员价格定义：json对象
    memberPrices: any;
    //商品类型
    type:string;
    //商品选项
    modifiers: Modifier[];
    store: any;
    /**
     * 成本价
     * 
     * @type {number}
     * @memberOf Inventory
     */
    costPrice: number;

    toString() { return "Inventory"; }
}